﻿using System;
using System.Net.NetworkInformation;

namespace Utility
{
	// Token: 0x0200063B RID: 1595
	public static class Network
	{
		// Token: 0x06002622 RID: 9762 RVA: 0x001468A8 File Offset: 0x00144AA8
		public static string GetMACAddress()
		{
			string text = string.Empty;
			NetworkInterface[] allNetworkInterfaces = NetworkInterface.GetAllNetworkInterfaces();
			if (allNetworkInterfaces != null)
			{
				foreach (NetworkInterface networkInterface in allNetworkInterfaces)
				{
					PhysicalAddress physicalAddress = networkInterface.GetPhysicalAddress();
					if (physicalAddress != null)
					{
						if (physicalAddress.GetAddressBytes().Length == 6)
						{
							string text2 = physicalAddress.ToString();
							text += text2;
							global::Debug.Log(text2);
						}
					}
				}
			}
			return text;
		}
	}
}
